package com.sqlparser.core.executor.plan;

import com.sqlparser.core.parser.ast.SQLStatement;
import java.util.ArrayList;
import java.util.List;

/**
 * SQL执行计划
 * 用于支持后续的查询优化
 */
public class ExecutionPlan {
    private final SQLStatement statement;
    private final List<ExecutionStep> steps;
    
    public ExecutionPlan(SQLStatement statement) {
        this.statement = statement;
        this.steps = new ArrayList<>();
    }
    
    public void addStep(ExecutionStep step) {
        steps.add(step);
    }
    
    public List<ExecutionStep> getSteps() {
        return steps;
    }
    
    public SQLStatement getStatement() {
        return statement;
    }
} 